import {createApp} from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from './router/router.js'
import Logo from '/public/logo.png'

import { xhykInit,options } from 'xhyk-vue'
// import initPost from 'xhyk-tools/postMessage.js'
import { setXhykUI } from 'xhyk-vue/importVue'

// region 引入element样式
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
// endregion

// import 'xhyk-vue/font'
import '/src/assets/font/xhyk/iconfont.css'

options.themePrefix = 'xhyk_project'
options.title = 'xhyk管理系统模板'
options.logo = Logo
options.blackRoute = ['shouYe']

// initPost()

const app = createApp(App)
app.use(createPinia())
xhykInit(app,router)
setXhykUI(app)
app.mount('#app')
